The legality of marrying a cousin varies depending on the jurisdiction. In some places, such marriages are allowed, while in others they are prohibited or restricted. It is important to consult the laws of your specific country or state to determine whether marrying a cousin is legally permissible.