A man threatened to set himself on fire and burn down the hotel where he was living when told he had to leave, a court has heard.
When police found Abdalla Barka outside the seafront guesthouse he was carrying a bottle of petrol and boxes of matches. He later told police he had planned to kill himself and he did not think the fire would spread to the rest of the hotel because there was a fire extinguisher outside his room.
The defendant's advocate told Swansea Crown Court his client had been acting out of "desperation and frustration" and realised he should have reacted differently to the news that he had to leave the property.