Javelins are like long spears.
Athletes run with the javelin, then throw it from behind a line on the ground. The athlete who throws the javelin the farthest wins.
If the athlete steps over the line to throw the javelin, it doesn't count.
Throwing the javelin is usually part of the decathlon, which aimed to prove the best, or at least toughest, all-round athlete.