As water fills the tank within the toilet, a floating ball shuts it off. When the flush button is pressed, the lift chain lifts a rubber flapper, which opens a hole in the bottom of the tank and flushes the water into the bowl….
Source: https://sansone-ac.com/how-to-fix-a-toilet-lift-chain/