In the product of the closet unit interval $I$ with the Cantor set $C$, identify $(0,x)$ and $\big(1,f(x)\big)$ where $f(x):=3x \mod 1$. The resulting space $X$ is the [mapping cylinder][1] of the continuous map $f:C\to C$. It is a compact metric space locally homeomorphic to $]0,1[\times C\\ ,$ thus not locally connected at any point. End-points of $I$ have not a special role; we may equivalently obtain $X$ with a larger quotient, $(\mathbb{R}\times C) / \{ (t,x)=\big (t+1,f(x)\big) \} $. The important feature of the map $f:C\to C$ is that it has a dense orbit $f^n( x_0)$. This is easily seen as it is conjugate to the left-shift map on binary strings on the space ${\bf 2}^\mathbb{N}$, $(c_1,c_2,\dots)\mapsto(c_2,c_3,\dots)$ which is just how we see $f$ on the 2-digits representations of points of the Cantor set. As a consequence, the image of $\mathbb{R}\times \{x_0\}$ in the latter quotient is a path-connected dense subset of $X$, which is therefore connected. **edit.** Actually, such spaces are quite common in dynamical systems; an other example is the Smale-Williams [Solenoid][2] and several [strange attractors][3]. [1]:http://en.wikipedia.org/wiki/Mapping_cylinder [2]:http://en.wikipedia.org/wiki/Solenoid_%28mathematics%29 [3]:http://en.wikipedia.org/wiki/Strange_attractor#Strange_attractor