On May 13.1804 ; Forces sent by Yusuf Karamanli of Tripoli to retake Derna from the Americans attack the city.