Preposition
(idiomatic) Related to or relevant to.
Used directly after the verb have or have got.
As I recall, his book had to do with alien abductions.
Used after the verb have or have got and a pronoun or determiner.
Does this have anything to do with the party you were planning?
The two concepts are often confused, but they actually have very little to do with each other.
Yes, I have a car, but what does that have to do with whether I am qualified for a desk job?
Used after a pronoun or determiner without the verb have or have got.
She says she doesn't want anything to do with him anymore.
Love has nothing to do with what you are expecting to get - only with what you are expecting to give - which is everything. Katharine Hepburn
The first thing I look for in a woman is warmth-femininity. It's got nothing to do with a pretty face. Kirk Douglas
I want to do with you what spring does with cherry trees. Pablo Neruda
Never take a wife till you know what to do with her. Scottish Proverb
Timing has a lot to do with the outcome of a rain dance. Cowboy Proverb
It is better to have to do with God than with his saints. French Proverb