The collision happened on the A697 at Carfraemill at about 14.55.
A man and woman in their 50s were rescued from one of the cars but the woman died at the scene and the man died later in hospital.
A man and woman in their 40s escaped from the other car and were taken to hospital with multiple injuries.