In packaging of microelectromechanical systems (MEMS), optical, and electronic devices, there is a need to directly bond a wide variety of inorganic materials, such as oxides, nitrides, and semiconductors. Such applications involve hermetic-sealing components, three-dimensional MEMS assembly components as well as active semiconductor or optical components, dielectric layers, diffusion barriers, waveguides, and heat sinks. These materials are known to be very difficult to wet and bond with low melting-point solders. New Sn-Ag-or Au-Sn-based universal solders doped with a small amount of rare-earth (RE) elements have been developed, which now allow direct and powerful bonding onto the surfaces of various MEMS, optical, or electronic device materials. The microstructure, interface properties, and mechanical behavior of the bonds as well as the potential packaging applications of these new solder materials for MEMS and optical fiber devices are described. Various packaging-related structural, thermal, or electrical issues in MEMS are also discussed.