The temple was originally built by the Yadavaraya kings in the 12th century CE.