First, turn off the water. If your toilet is on the verge of overflowing (or has already begun to), this prevents any more water from entering your toilet and making the problem worse. Find the shutoff valve located behind the toilet, near the floor, and turn it clockwise.