Toilets are mounted on a wax ring to seal odors and ensure water goes down the right way. Yours has shifted or failed. Go to any hardware store and get a replacement. The fun part is turning off the water, flushing and bailing the toilet to make it lighter and removing the floor flange bolts. Lift the toilet off the old seal, clean the flange and toilet surfaces, and seat the new wax seal.