Confinement is a fundamental property of quantum chromodynamics (QCD) associated with the unique role of the gluonic field responsible for binding quarks in hadrons. Understanding the role of gluons in the confinement of quarks is one of the most tantalizing topics in modern particle physics to be explored. The new experiment GlueX has been recently constructed at Jefferson Lab [1] . The experiment was designed to search for hybrid mesons with exotic quantum numbers using a beam of linearly polarized photons incident on a liquid hydrogen target. The spectrum of these states and their mass splitting from normal mesons may yield information on confinement. In addition, these observations in combination with detailed chromodynamics calculations such as on the Lattice can provide important tests for our understanding of the role of gluons. The production of exotic mesons is expected to be enhanced in γp interactions, where the experimental data is very limited. We present the description of the GlueX detector, beam line, and first results of the commissioning with photon beam.