We propose a novel wavelength assignment algorithm that can establish lightpaths requiring the least wavelength conversions by chaining a minimum number of wavelength-continuous segments. Simulations show that our algorithm outperforms both first-fit and most-used schemes with large margins. Besides, moderate computational requirement and insignificant signaling overhead are also advantages of our algorithm.