What do the brackets in chemical equations mean?

What do brackets in chemical equations mean? Ca (OH)2

What does the (OH) symbolise?

K2SO4 . Al2(SO4)3 . 24H2O
What does (SO4) here symbolise?