A carbon material consisting of interconnected spheres of around 350nm diameter has been prepared by hydrothermal synthesis at 453K. Subsequently, the hydrothermal carbon (HTC) has been treated in N2 at different temperatures, 573, 673, 773, 973K, giving rise to materials with similar spherical morphology but different microporous structure and oxygen content. Concerning porosity, the materials ranged from carbon formed exclusively by ultramicropores (<0.7nm) to carbons with wider micropores. Concomitantly to the widening of micropores, the amount of oxygenated surface groups decrease as heat treatment temperature of HTC increases. Sulfonated carbon catalysts were prepared thereof and tested in the esterification of palmitic acid with methanol. The catalysts were benchmarked with a commercial activated carbon consisting of micro and mesopores that was sulfonated by the same method. The prepared materials showed significantly different catalytic activity and deactivation mechanisms, which have been explained on the basis of their different textural properties and oxygenated surface group content.