A mainsail is like a big blanket that is attached to the tall, upright pole in the middle of a boat. When the wind blows, it grabs the sail and pushes the boat forward. Imagine holding a piece of paper outside on a windy day - the paper will move in the same direction as the wind is blowing it. This is similar to how the mainsail works.
The mainsail has a lot of ropes and strings called lines and stays that help it stay in the right position. These lines are controlled by the people on the boat called sailors. The sailors pull the lines to adjust the sail and catch as much wind as possible to move the boat forward.
Just like how a kite can fly in the air when the wind blows on it, the mainsail catches the wind to move the boat forward. The bigger the sail, the more wind it can catch, and the faster the boat can go. The mainsail is the biggest sail on the boat and is very important for making the boat move.