have to do with ~ ~と関係がある

have to do with

Oと関係がある have to do with O
The letter has to do with him.

have much(*1) to do with O Oと大いに関係がある。
*1にはsomething,anything,much,littleなどで関係性の程度を表す。