Complex sentence: After the war ended, Porter was offered a command in the Egyptian Army but declined it, and spent most of the remainder of his life fighting against the perceived injustice of his court-martial.
Split into simpler sentences: After the war ended, Porter was offered a command in the Egyptian Army but declined it. He spent most of the remainder of his life fighting against the perceived injustice of his court-martial.