City Council Speaker Melissa Mark-Viverito dodged questions Sunday about her cozy relationship with a powerful lobbying firm, arguing she’s “doing everything by the rules.”

Mark-Viverito refused to discuss her conversations with Pitta Bishop Del Giorno & Giblin — even though she paid the company $61,000 during her run for City Council speaker.

“As you guys reported, we follow and we’re doing everything by the rules and legal. That’s the bottom line,” she told The Post.

Since Mark-Viverito was elected to the top post a year and a half ago, Pitta Bishop has raked in more than $3.3 million to lobby council members. The firm successfully lobbied the council on 12 bills since she won the job.