[example: The Punctured Real Line]
Let $X = \mathbb{R} \setminus \{0\}$ with the [subspace topology](/page/Subspace%20Topology) inherited from $\mathbb{R}$. Define
\begin{align*}
U = (-\infty,0), \qquad V = (0,\infty).
\end{align*}
The set $U$ is open in $X$ because
\begin{align*}
U = X \cap (-\infty,0),
\end{align*}
and $(-\infty,0)$ is open in $\mathbb{R}$. Similarly,
\begin{align*}
V = X \cap (0,\infty),
\end{align*}
and $(0,\infty)$ is open in $\mathbb{R}$, so $V$ is open in $X$.
Both sets are non-empty, since $-1 \in U$ and $1 \in V$. They are disjoint because no real number satisfies both $x<0$ and $x>0$. Their union is all of $X$: if $x \in X$, then $x \in \mathbb{R}$ and $x \neq 0$, so either $x<0$ or $x>0$; hence $x \in U \cup V$. Conversely, every point of $U \cup V$ is nonzero, so $U \cup V \subset X$. Therefore
\begin{align*}
U \cap V = \varnothing, \qquad U \cup V = X.
\end{align*}
Thus $(U,V)$ is a disconnection of $X$, splitting the punctured real line into its negative and positive halves.
This example shows why the chosen space matters. In $\mathbb{R}$, the same two rays fail to cover $0$; in $\mathbb{R}\setminus\{0\}$, that point is no longer present, so the two relatively open rays cover the whole space.
[/example]