Complex sentence: Babur stayed in the fort in the palace of Ibrahim and built a baoli (step well) in it.
Split into simpler sentences: Babur stayed in the fort in the palace of Ibrahim. He built a baoli (step well) in it.