Throw one’s hat into the ring

To announce that you are running for an elected office, to enter a contest or agree to a challenge.

The mayor threw his hat into the ring and decided to run for president.