The Mayflower Compact was:

a treaty signed with the Native Americans
the first written constitution of Massachusetts
an agreement to obey all laws made by the Pilgrim government
the charter of Rhode Island