Although protein structures are primarily encoded by their sequences, they are also critically dependent on environmental factors such as solvents and interactions with other molecules. Here we investigate how the folding-energy landscape of a short peptide is altered by interactions with another peptide, by performing atomistic replica-exchange molecular dynamics simulations of polyalanines in various environments. We analyzed the free-energy landscapes of Ala 7 and Ala 8 in isolation, near an ␣-helix template, and near a -strand template. The isolated Ala 7 and Ala 8 at 270 K were mainly in polyproline II helix conformations and in equilibrium between the ␣-helix and polyproline II helix, respectively, in harmony with the experiment. Interestingly, we found remarkably strong secondary-structure ''templating''; namely, the ␣-helix template enhanced ␣-helix conformation and the -strand template induced -strand conformation in the simulated Ala 8 . The ␣-helix template lowered the nearby dielectric constant, which strengthened hydrogen bonds in the simulated Ala 8 , leading to ␣-helix stabilization. The -strand template provided hydrogen bond positions to the simulated Ala 8 , sharply inducing -strand structure. With or without templates, the energy landscape of Ala 8 is always funnel-like and centered at the ␣-helix conformation, whereas entropic contribution disfavors the ␣-helix, leading to subtle competition. Secondary-structure templating may play a critical role in protein conformation dynamics in the cellular environment.energy landscape ͉ generalized Born ͉ polyproline II ͉ protein folding ͉ replica exchange P rotein structures are primarily encoded by their sequences, and many proteins can spontaneously fold into their native structures. This robust refolding can be realized through organization of the funnel-like energy landscape (1). However, many cases where the protein environment makes the situation substantially more complex need further consideration, such as domain swapping in multidomain proteins (2), amyloid formation (3), and nonspecific macromolecular crowding (4). In general, environmental factors such as protein-protein and protein-solvent interactions change the energy landscape of proteins, leading to critical differences in conformational states, which could be an important source of biological diversity.Environmental effects on protein conformation are very versatile, even for one of the simplest polypeptides, polyalanine, and its derivatives. Ala 13 , flanked by two ornithine-and alaninerich peptides containing interior lysine, glutamic acid, or glutamine, favors an ␣-helix structure in water (5-7), which is consistent with the high propensity of alanine to take on an ␣-helix structure in the statistics of the Protein Data Bank (8). However, similar alanine-based peptides, Ala-Gly-Ala-Ala-AlaAla-Gly-Ala (9) and Ac-Lys-Ala 14 -Lys-methyl amide (NMe) (10), form amyloid fibrils in water. In a more complicated way, shorter alanines (Ala n with n Ϸ 10) flanked by Lys are in disordered ...