By considering a spacetime with a spiral dislocation, we analyse the behaviour of the Dirac field subject to a hard-wall confining potential. In search of relativistic bound states solutions, we discuss the influence of the topology of the spiral dislocation spacetime on the energy levels.Further, we analyse the effects of rotation on the Dirac field in the spiral dislocation spacetime.We show that both rotation and the topology of the spacetime impose a restriction on the values of the radial coordinate. Thus, we analyse the effects of rotation and the topology of the spiral dislocation spacetime on the Dirac field subject to a hard-wall confining potential by searching for relativistic bound states solutions.PACS numbers: