In late 117 , while sailing back to Rome , Trajan fell ill and died of a stroke in the city of Selinus . In late 117 while sailing back to Rome , Trajan fell ill and died of a stroke in the city of Selinus .