Practise useful combinations such as pensar en, depender de, contar con and acostumbrarse a.
The preposition is part of the pattern: confiar en, acordarse de, casarse con, negarse a, preocuparse por.
A preposition can be valid Spanish and still be wrong after a particular verb, so learn the complete combination.
Related guide: Spanish Prepositions Guide