When was Maine Founded?

Maine originally started out as part of Massachusetts but because of trying to resolve issues of slave states, in 1820 Maine separated from Massachusetts and officially became its own state.