During Viswamitra's yagna (ritual), two demons, Maricha and Subahu, came to disrupt it. Rama killed Subahu with his arrows, while he only injured Maricha (who was thrown far away into the ocean). Iravana and Mahiravana are associated with later Ramayana events.