UG stands for Undergraduate and PG stands for Postgraduate. These two are the academic domain of education on different levels.