How was Cleopatra involved in Marc Antony war?

After Caesar died she married Marc Anthony and when they lost their bid for control of Egypt and Rome both committed suicide.