Yes, there is a dress code for visiting the Vatican. Visitors are expected to dress modestly, with shoulders and knees covered. Shorts, mini-skirts, and sleeveless tops are not allowed. Hats are also not allowed in the Basilica.