It takes two to tango - that's true. You can't tango alone.
Therefore, this idiom refers to something that requires the active involvement of two people. It is usually used in a negative situation or it could describe a pregnancy.
Did you know that she's pregnant?
Well, it takes two to tango.
Of course, the tango is a saltry, sexy dance that definitely requires two people - like this: