It's been two years since she married him.

Literal

She [topic-は] he [with-と] marry-and two years become.

The pattern ~て + (time amount) + になる means 'X amount of time has passed since ~.' The te-form 結婚して links the marrying-event to the time-passing main predicate. になる literally 'becomes' — the time threshold is being reached.