Ohaguro was banned in Japan during the Meiji era because the government wanted to modernize the country and adopt Western customs. Black teeth were seen as a sign of backwardness and were considered unsanitary. As a result, the practice was outlawed, and people were encouraged to adopt Western dental practices.