The last ruler of the <a href="https://en.wikipedia.org/wiki/Lodi_dynasty" id="mwNQ" rel="mw:WikiLink" title="Lodi dynasty">Lodi dynasty</a>, <a class="mw-redirect" href="https://en.wikipedia.org/wiki/Ibrahim_Lodi" id="mwNg" rel="mw:WikiLink" title="Ibrahim Lodi">Ibrahim Lodi</a> is defeated and killed by <a href="https://en.wikipedia.org/wiki/Babur" id="mwNw" rel="mw:WikiLink" title="Babur">Babur</a> in the <a href="https://en.wikipedia.org/wiki/First_Battle_of_Panipat" id="mwOA" rel="mw:WikiLink" title="First Battle of Panipat">First Battle of Panipat</a>.