Baseball is thought to have originated as a game played by children in England, who would hit a ball with a stick and then run around the bases. It is believed that the game was brought to North America by English immigrants in the late 18th century. The game gained popularity in the United States and became a professional sport in the late 19th century.