The Society of United Irishmen launched a rebellion in 1798, which began in Leinster and quickly spread to Ulster. The United Irishmen had been founded in 1791 by liberal Protestants in Belfast. Its goal was to unite Catholics and Protestants and to end British monarchical rule over Ireland and to found a sovereign, independent Irish republic. Although its membership was mainly Catholic, many of its leaders and members in northeast Ulster were Protestant Presbyterians. On 7 June 1798, about 4,000 United Irishmen led by Henry Joy McCracken attacked the town. The rebels were on the verge of taking the town until British reinforcements arrived. Thanks to a rebel band led by James Hope, most of the United Irishmen were able to withdraw safely. This is known as the Battle of Antrim.