According to tradition, the church was dedicated to St. Mark, patron of Venice, after the help given by that city in the war against Frederick Barbarossa in the 12th century.
The structure was heavily modified in the Baroque style during the 17th century, when it became the largest church in the city after the Duomo di Milano.