Arrays of GaN-based nanowires have been synthesized on patterned silicon without a catalyst. The spatial density, length and average radius of the nanowires can be well-controlled. The GaN core contains two semipolar facets and a controllable polar facet. The nanowire heterostructures exhibit excellent laser behavior.