A husband killed himself during a family break in Morocco four days after his wife died when she fell from a window of their holiday apartment, an inquest has concluded.

Roger Lamb, an engineer, suffered fatal head injuries when he plunged from the first floor of a hotel into the reception area. He was staying in the hotel with his children following the death of their mother, Tilly Lamb, who fell as she leaned out to remonstrate with noisy revellers in the street below.

The inquest at Trowbridge in Wiltshire heard that the Lambs had been suffering financial and marital difficulties. But the coroner for Wiltshire and Swindon, David Ridley, said he was satisfied there had been no foul play. He ruled that Tilly Lamb's death had been an accident while Roger Lamb had taken his own life.

The inquest was told that Roger Lamb, 47, had suffered mental health problems in the weeks leading up to the holiday in August last year. He had begun working in New Zealand and wanted the family to move there from their home in Worcestershire but his wife, 43, did not wish to go. However, the court was told that the couple had been getting on well during their stay in the resort of Essaouira. In the early hours of 17 August Mrs Lamb was disturbed by noises on the street outside their apartment.

The coroner said: "Tilly went to investigate. She has been described as an adventurous individual with no sense of danger."

She climbed on to a sofa and craned out the window. "She was trying to get a better view of what was happening. Sadly, she lost her balance and tragically fell," the coroner said.

Following the accident, Lamb apparently tried to drown himself by filling a rucksack up with stones and leaping into a harbour but was rescued by local men.

His mood seemed to improve and the family moved to a hotel. But the alarm was raised when Lamb failed to meet his children for breakfast on 21 August. Hotel staff said he had fallen from the first floor, landing in reception. He died of his injuries the next day. Ridley described Mr Lamb as a "fragile and vulnerable person" who "took his own life while suffering from depression".

Spelling out that he did not believe there had been any foul play, the coroner said: "While on holiday [Mr and Mrs Lamb] were at ease. What we have here is a family enjoying themselves on holiday. There is nothing to intimate that it was anything other than that."

Outside court, members of the Lambs' family said it had been a "harrowing" time for them all. In a statement they said the couple had been "devoted and loving parents who succeeded in bringing up their lovely children", adding: "The future of their children will remain the principal concern of both their families."