A new strategy for creating functional trilayer nanofibers through triaxial electrospinning is demonstrated. Ethyl cellulose (EC) was used as the filament-forming matrix in the outer, middle, and inner working solutions and was combined with varied contents of the model active ingredient ketoprofen (KET) in the three fluids. Triaxial electrospinning was successfully carried out to generate medicated nanofibers. The resultant nanofibers had diameters of 0.74 ± 0.06 μm, linear morphologies, smooth surfaces, and clear trilayer nanostructures. The KET concentration in each layer gradually increased from the outer to the inner layer. In vitro dissolution tests demonstrated that the nanofibers could provide linear release of KET over 20 h. The protocol reported in this study thus provides a facile approach to creating functional nanofibers with sophisticated structural features