The 1974 Equal Credit Opportunity Act made it illegal to discriminate against applicants based on sex or marital status.