The main gate of Óbidos' historic centre bears the King João IV-ordered inscription, 'A Virgem Nossa Senhora foi concebida sem pecado original' ('The Virgin Mary was conceived without original sin'). The gate features a chapel and a gorgeous blue-and-white-tiled baroque balcony. It dates to around 1380.