Stavo scrivendo una mail, ma a un certo punto il computer si รจ spento.

Frase 1 + ma + Frase 2
This structure has a COORDINANT CONJUNCTION that ties the two sentences together. For example, I can say, 'Ho chiuso le finestre ma fa ancora freddo'. In this example the word 'ma' creates a contrast between 'chiudere le finestre' and 'fare freddo'. Almost an illogical situation because with the windows closed it is normally not cold. Precisely because of this 'avversione' this conjunction is called AVVERSATIVE CONJUNCTION