Some words travel with one preposition. You learn the pair.
A fixed partner
Depend on. Good at. Interested in. Not depend of. Not good in. Not interested on.
Small words
In, on, at, of, for, to. The adjective or verb chooses. You memorize the pair.
It depends of the traffic. — no
It depends on the traffic. — yes