The subjunctive is used to express wishes, probabilities, or conditions which are contrary to fact. It is called Konjunktiv 2 in German.
It would be like the "would do" function in English. For example:
I would like to go to the supermarket.
Ich würde gerne zum Supermarkt gehen.