Don's right...your tank vent is blocked
It sounds like your toilet also needs lubrication, but that's not why you're experiencing backflow.A blocked tank vent pressurizes the tank, creating backpressure that sends flushes back to the bowl. It'll also prevent a tank from being pumped out.A tank vent--ALL tank vents, water fuel and waste--have two primary functions: to provide an escape for air displaced by incoming material...and to provide a source of air to replace material as it's pulled out. When the vent becomes blocked, the system becomes pressurized, preventing anything from getting into the tank..it also causes pumps to pull a vacuum that prevents anything from being pulled out. Continuing to use the toilet against a blocked vent can have consequences you don't even want to think about--an eruption in the toilet, an eruption on deck when you open the deck pumpout fitting, even a cracked tank. A strong pumpout pulling against a blocked vent can implode a tank. So do not use the toilet or attempt to pumpout till the vent is clearThe most common locations for a blockage are the vent thru-hull and the connection to the tank, both the fitting and that end of the hose. So first, scrape out the thru-hull with a screwdriver blade (if there's a screen in, remove it). If that's where the only blockage is, you may get an eruption out the vent, so watch where you're standing. If it's not the only blockage--if there's also one at the tank--you need to relieve the pressure in the tank before removing the vent line from the tank fitting. Loosen the deck pumpout cap VERY carefully...hang onto it...and have a hose at the ready. Or, if you're lucky, the pressure may have dissipated through the toilet. But I wouldn't remove any hoses till you're sure.It's essential to keep the vent open...to make sure it stays that way, backflush it every time you wash the boat and/or pump out.For more details on how to maintain a toilet and tank, you might want to check out the link below.