In the Middle Ages, Saint-Martin was a fortified village. Access to the village was only possible through one of these gates, the Porte Sainte-Anne being the only one still standing today.
Legend has it that the doors were locked at night to protect against wolves.