Broadly speaking: that's what chemistry is about, so yes, we know. But it is not something that can be explained in a single post. Getting a chemistry degree takes years for a reason, you need to learn many concepts to be able to predict what to expect.
The best course of action is to start with a decent general chemistry book, one that has not only general section, but also a part on inorganic chemistry.