It refers to the state or quality of being identical or alike.
Here are some examples:
* The sameness of the twins' faces made it hard to tell them apart.
* Despite the differences in their backgrounds, they found a surprising sameness in their values.
* The sameness of the routine was starting to wear on her.