According to legend, the first humans in Japan were created by the gods Izanami and Izanagi. Their first ruler was Ninigi, the grandson of the goddess Amaterasu.