The original parish church of St. Martin mentioned in 1399 was made of wood. The brick church in the Gothic style was built in the first half of the 15th century, and its construction was started before 1425 by Mikołaj Oporowski, the voivode of Łęczyca. The construction was completed by his sons Władysław Oporowski, after taking over the family estate in 1428, Władysław was the bishop of Włocławek from 1434, later the archbishop of Gniezno and primate of Poland, and Piotr Oporowski - the voivode of Łęczyca.
The single-nave church with an unseparated presbytery and a burial crypt was built on the plan of an elongated rectangle, with a porch on the southern side. The interior was covered with a wooden ceiling. The modest decoration of the external elevations consisted of white plastered pointed arch panels, a brick frieze made of squared timber crowning the walls of the nave and rhombuses made of zendrówka bricks. The western elevation was most likely crowned with a decorative gable, as evidenced by two half-peaks preserved under the roof by the tower.
In 1453, the Oporowskis - Władysław and Piotr donated the church to the Order of St. Paul the First Hermit, the rule of St. Augustine. The motive was the desire to honor the memory of Krystyna and Mikołaj Oporowski's parents, buried in the church's basement.
The church building is connected to the monastery building.