He's one of the Navagraha (the 9primary celestial beings in Hindu astrology) of Jyotiṣa. He's embodied in planet Saturn and is the Lord of Saturday. The word Shani comes from Śanayē Kramati Sah, the one who moves slowly bcs Saturn takes about 30 years to orbit the Sun.