How does an object become negatively charged?

How does an object become negatively charged?