Border with multirow and multicolumn

Here is a solution. I took the opportunity to improve the vertical padding of cells, and defined a \nocell command to have a number of empty cells; its argument is the number of consecutive empty cells.

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{multirow}
\usepackage{array, makecell, rotating}
\setcellgapes{2pt}
\newcommand\nocell[1]{\multicolumn{#1}{c|}{}}

\begin{document}

\makegapedcells
\begin{tabular}{|c*{6}{|p{2cm}}|}
  \cline{3-7}
  \nocell{2}& \multicolumn{5}{c|}{something} \\ \cline{3-7}
  \nocell{2} & AAA & BBB & CCC & DDD & EEE\\ \hline
  \multirowcell{2}[0.5ex]{\rotatebox[origin=c]{90}{sth}} & line 1 & x & x & x & x & x \\ \cline{2-7}
 & line 2 & x & x & x & x & x \\ \cline{1-7}
\end{tabular}

\end{document}  

enter image description here