Answer
The Ottoman Empire had a policy of hereditary succession. When the Sultan died, his eldest son would become the next Sultan. Murad IV was the eldest son of Sultan Ibrahim I. Ibrahim I was a very weak ruler. He was easily manipulated by his concubines, who would often encourage him to do foolish things. This caused the empire to fall into decline.