What is the function of the judiciary?

judiciary is very important because while living in a country we should follow some rules and laws of the government without judiciary people become independent and they will start doing things of their own choice and if there is no law in a country then their is no discipline so it is very important.

This is the wrong answer, You will not understand what this is saying please improve this if you feel the answer above is a lie! So people of America, if you are looking for a reasonable answer to this question please improve this!
The main function of the judiciary is to interpret the constitution. The judiciary also handles all types of cases filed in courts and give a verdict in reference to the constitution.