Visiting the basilica is free. To visit the basilica's museum and view from the roof terrace, you need to buy tickets on site. More info about the Saint Mark's Basilica.