The Peace option under your alliances tab allows you to set a state of neutrality between you and your opponent, an action that occurs in-game. Said neutrality disallows you from attacking said player you are at peace with until you then declare war on them. The surrender option available under the quit tab allows you to concede the game-- thus ending it-- but you keep your earned SP.