During the Spanish colonial period, Puerto Rico had laws such as the "Regla del Sacar" or "Gracias al Sacar," by which a person of black ancestry could be considered legally white so long as the individual could prove that at least one person per generation in the last four generations had also been legally white.