Babur attacked India in the early 16th century . India was an easy prey for any foreign invader as it was divided into many small states . The small states were incapable of stranding up . Delhi had lost its glory under the rule of Ibrahim Lodi . Hence the officials of Ibrahim Lodi invited Babur to invade India . The condition of Punjab , Gujarat , Bengal , Malwa , Rajasthan , Kashmir was quite bad . Lawlessness and disorder was spread everywhere