An ultrasonic device and a device for generating a mechanical vibration. The ultrasonic device comprises an ultrasonic probe and the device for generating a mechanical vibration. The device for generating a mechanical vibration comprises a vibration generator (1), a damping assembly (2), and a pressure assembly (3). The damping assembly (2) is fixed between the vibration generator (1) and the pressure assembly (3), and the ultrasonic probe is connected to the pressure assembly (3). The vibration generator (1) is used for generating a vibration when a pressure value detected by the pressure assembly (3) reaches a preset range. The ultrasonic probe of the ultrasonic device makes contact with the skin surface corresponding to an organ to be detected and applies a downward pressure to the skin surface, the device for generating a mechanical vibration generates mechanical vibration outside the organ to be detected, and accordingly organ elasticity detection can be carried out by carrying out an operation on the corresponding skin surface outside the organ to be detected; no surgery is needed, pain brought by the surgery to a human body or an animal is relieved, and the operation is quite convenient.