There are specific procedures that one must follow when petitioning their significant other. When the individual is married to a United States citizen and entered lawfully into the United States, they can adjust their status to become a resident.
However, suppose one is a lawful permanent resident and marries someone in the United States who entered lawfully. In that case, the individual who entered lawfully must go through the United States consulate in their country of origin to obtain their green card.