The following is completely standard, appearing in any textbook on the subject (e.g. see Stanley, EC1, Chapter 3 Exercise 108), but since it is not clear to me what the question asker understands I am posting it in detail.
Let $G$ be a connected, simple graph on vertex set $V$. A set partition $\pi$ of $V$ is called $G$-connected if the restriction of $G$ to each block of $\pi$ remains connected. The bond lattice $L_G$ of the graph $G$ consists of the $G$-connected partitions of $V$, ordered by refinement. So its minimal element $\hat{0}$ consists of all singleton blocks, and its maximal element $\hat{1}$ has all the vertices together in one block.
Fix an integer $n \geq 1$. For $\pi$ a $G$-connected partition of $V$, call a coloring $c\colon V \to [n]$ $\pi$-compatible if all the elements in each block of $\pi$ get the same color. Every coloring is $\hat{0}$-compatible, and notice that a coloring $c$ is proper exactly when $\pi=\hat{0}$ is the maximal element of $L_G$ for which $c$ is $\pi$-compatible. Also, the number of $\pi$-compatible colorings is clearly $n^{\#\mathrm{blocks}(\pi)}$. Hence, by Möbius inversion on $L_G$, we have that the chromatic polynomial of $G$ is
$$ \chi_G(n) = \sum_{\pi \in L_G} \mu(\hat{0},\pi) \, n^{\#\mathrm{blocks}(\pi)},$$
where $\mu$ is the Möbius function of $L_G$. This means that the chromatic polynomial is (essentially) the characteristic polynomial of $L_G$.