Weight Maintenance & Long-Term Use

How do I preserve muscle while losing weight?