Question: When did the entity with which Nizam was allied in the late 18th century end?
Answer: 1799