There are various means to qualify for the tournament, but there are just some of them:
Top players in world rankings
Past Open champions (under age 60)
Recent major championship winners
Top finishers in designated tournaments
Winners of specific amateur championships
Top finishers in qualifying series events